﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BigFileUpload.aspx.cs" Inherits="ZHDJ.Web.BigFileUpload" %>

<%@ Register TagPrefix="Upload" Namespace="Brettle.Web.NeatUpload" Assembly="Brettle.Web.NeatUpload" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>大文件上传</title>
    <script type="text/javascript">

        function checkInput() {

            var coursename = document.getElementById("txtCourseName").value;
            if (coursename == "") {
                alert("课件名称不能为空！");
                return false;
            }
            

            var coursename = document.getElementById("uploadfileid").value;
            if (coursename == "") {
                alert("请先上传附件！");
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="pagebox">
            <div class="innerbox">
                <table border="1">
                    <tr>
                        <td>课件名称：</td>
                        <td>
                            <asp:TextBox runat="server" ID="txtCourseName"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td>课件类别：</td>
                        <td>
                            <asp:DropDownList runat="server" ID="drpCourseType"></asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td>课件格式：</td>
                        <td>
                            <asp:DropDownList runat="server" ID="drpCourseFormat"></asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <Upload:InputFile ID="AttachFile" runat="server" />
                            <asp:Button ID="btnUpload" Text="上传" runat="server" OnClick="btnUpload_Click" />
                            <br />
                            <Upload:ProgressBar ID="ProgressBar1" runat="server" />
                            <asp:Label runat="server" ID="lblfileurl"></asp:Label>
                            <asp:HiddenField runat="server" ID="uploadfileid" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align:center;">
                            <asp:Button ID="sure" runat="server" OnClick="sure_Click" Text="新增" OnClientClick ="return checkInput();"/></td>
                    </tr>
                </table>

            </div>
        </div>
    </form>
</body>
</html>
